﻿@model MvcMusicStore.Models.Genre

@{
    ViewBag.Title = "Browse";
}

<div>
    <h3><em>@Model.Name</em> Albums</h3>
    
    <ul id="album-list">
        @foreach(var album in Model.Albums)
        {
            <li>
                <a href="@Url.Action("Details", new {id= album.AlbumId})">
                    <img src="@album.AlbumArtUrl" alt="@album.Title"/>
                    <span>@album.Title</span>
                </a>
            </li>
        }
    </ul>
</div>